package pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import service.Document;

/**
 * Created by zuoxiao
 * on 2019/6/26.
 */
@Component
public class Transcript implements Document {
    @Value("10")
    private int math;
    @Value("10")
    private int history;
    @Value("10")
    private int computer;

    public int getMath() {
        return math;
    }

    public void setMath(int math) {
        this.math = math;
    }

    public int getHistory() {
        return history;
    }

    public void setHistory(int history) {
        this.history = history;
    }

    public int getComputer() {
        return computer;
    }

    public void setComputer(int computer) {
        this.computer = computer;
    }

    @Override
    public String toString() {
        return "Transcript{" +
                "math=" + math +
                ", history=" + history +
                ", computer=" + computer +
                '}';
    }

    public void getDocumentName(){
        System.out.println("Transcript");
    }
}
